package com.iflytek.cosmo.ocr.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 线程相关配置
 * @author yunsun
 *
 */
@Configuration
@ConfigurationProperties(prefix = "cosmo")
public class ThreadProperties {

	/**
	 * 多文件上传线程池大小
	 */
	private int maxUploadThread;

	/**
	 * 识别服务（包含pdf处理）线程池大小
	 */
	private int maxRecogniseThread;

	/**
	 * @return the maxUploadThread
	 */
	public int getMaxUploadThread() {
		return maxUploadThread;
	}

	/**
	 * @param maxUploadThread the maxUploadThread to set
	 */
	public void setMaxUploadThread(int maxUploadThread) {
		this.maxUploadThread = maxUploadThread;
	}

	/**
	 * @return the maxRecogniseThread
	 */
	public int getMaxRecogniseThread() {
		return maxRecogniseThread;
	}

	/**
	 * @param maxRecogniseThread the maxRecogniseThread to set
	 */
	public void setMaxRecogniseThread(int maxRecogniseThread) {
		this.maxRecogniseThread = maxRecogniseThread;
	}

}
